<script setup lang="ts">
import { toRefs } from 'vue';

const props = defineProps({
  code: {
    type: String,
    default: `
    <template>
    <highlightjs language="JavaScript" :autodetect="false" :code="code"></highlightjs>
</template>`
  }
});

const { code } = toRefs(props);
</script>

<template>
  <div style="max-height: 80vh; overflow-y: auto">
    <highlightjs language="xml" :autodetect="false" :code="code"></highlightjs>
  </div>
</template>

<style scoped lang="scss"></style>
